package com.wangzhixuan.commons.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class Result<T> implements Serializable {
    private int code = 0;
    private boolean success = true;

    private String msg = "";

    private T obj = null;

    public boolean getSuccess() {
        return this.code == 0;
    }
}
